package com.summer.tools.common.enums;

import lombok.Getter;

/**
 * @author john
 */
@Getter
public enum MimeEnum {
    // 通用返回code
    EXCEL_2003("application/vnd.ms-excel", ".xls"),
    EXCEL_2010("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ".xlsx"),
    TEXT("text/plain", ".txt"),
    IMAGE("image/*", ".png/.jpg/.gif"),
    PDF("application/pdf", ".pdf"),
    VIDEO("video/*", ".avi/.mpg/.mpeg/.mp4"),
    AUDIO("audio/*", ".mp3/.wav"),
    HTML("text/html", ".pdf");

    MimeEnum(String contentType, String suffix) {
        this.contentType = contentType;
        this.suffix = suffix;
    }

    private final String suffix;
    private final String contentType;
}
